<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SSDP Help: XRay3d</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SSDP Help<span id="projectnumber">&#160;2.04.01</span>
   </div>
   <div id="projectbrief">仅供测试</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.3 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',false,false,'search.php','搜索');
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="../../d1/de8/struct_x_ray3d-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">XRay3d</div></div>
</div><!--header-->
<div class="contents">

<p>三维的射线  
 <a href="../../d2/d7e/struct_x_ray3d.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="../../d0/d0d/_x_ray3d_8h_source.html">XRay3d.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a16a3e8244fa885c3d8a877fc5d9cc213"><td class="memItemLeft" align="right" valign="top"><a id="a16a3e8244fa885c3d8a877fc5d9cc213" name="a16a3e8244fa885c3d8a877fc5d9cc213"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>XRay3d</b> (XPoint3dCR o, XVec3dCR d)</td></tr>
<tr class="separator:a16a3e8244fa885c3d8a877fc5d9cc213"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05d1452cdb322953f732feedf869817b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d7e/struct_x_ray3d.html#a05d1452cdb322953f732feedf869817b">InitFromOriginAndVector</a> (XPoint3dCR origin, XVec3dCR vector)</td></tr>
<tr class="memdesc:a05d1452cdb322953f732feedf869817b"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化数据  <a href="../../d2/d7e/struct_x_ray3d.html#a05d1452cdb322953f732feedf869817b">更多...</a><br /></td></tr>
<tr class="separator:a05d1452cdb322953f732feedf869817b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51dfc616df0f94ca51a250bfe2fee1e8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d7e/struct_x_ray3d.html#a51dfc616df0f94ca51a250bfe2fee1e8">InitFromPlanePlaneIntersection</a> (XPlane3dCR planeA, XPlane3dCR planeB)</td></tr>
<tr class="memdesc:a51dfc616df0f94ca51a250bfe2fee1e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化数据  <a href="../../d2/d7e/struct_x_ray3d.html#a51dfc616df0f94ca51a250bfe2fee1e8">更多...</a><br /></td></tr>
<tr class="separator:a51dfc616df0f94ca51a250bfe2fee1e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79835c2159771277110779c98dc28c51"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d7e/struct_x_ray3d.html#a79835c2159771277110779c98dc28c51">Intersect</a> (XPoint3dR intPoint, double &amp;intParam, XPlane3dCR plane) const</td></tr>
<tr class="memdesc:a79835c2159771277110779c98dc28c51"><td class="mdescLeft">&#160;</td><td class="mdescRight">与平面相交  <a href="../../d2/d7e/struct_x_ray3d.html#a79835c2159771277110779c98dc28c51">更多...</a><br /></td></tr>
<tr class="separator:a79835c2159771277110779c98dc28c51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9dadf1cbe26ddff278925ad68f6bf165"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d7e/struct_x_ray3d.html#a9dadf1cbe26ddff278925ad68f6bf165">ProjectPointUnbounded</a> (XPoint3dR closestPoint, double &amp;closestParam, XPoint3dCR point) const</td></tr>
<tr class="memdesc:a9dadf1cbe26ddff278925ad68f6bf165"><td class="mdescLeft">&#160;</td><td class="mdescRight">将点投影到射线上（无范围限制）  <a href="../../d2/d7e/struct_x_ray3d.html#a9dadf1cbe26ddff278925ad68f6bf165">更多...</a><br /></td></tr>
<tr class="separator:a9dadf1cbe26ddff278925ad68f6bf165"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ab0fea928ca45c982c6bb0a322e96e2f3"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d2/d7e/struct_x_ray3d.html">XRay3d</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d7e/struct_x_ray3d.html#ab0fea928ca45c982c6bb0a322e96e2f3">FromOriginAndVector</a> (XPoint3dCR origin, XVec3dCR vector)</td></tr>
<tr class="memdesc:ab0fea928ca45c982c6bb0a322e96e2f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建函数  <a href="../../d2/d7e/struct_x_ray3d.html#ab0fea928ca45c982c6bb0a322e96e2f3">更多...</a><br /></td></tr>
<tr class="separator:ab0fea928ca45c982c6bb0a322e96e2f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad34dfb86ec471c5edb539f6e73e23838"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d2/d7e/struct_x_ray3d.html">XRay3d</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d7e/struct_x_ray3d.html#ad34dfb86ec471c5edb539f6e73e23838">FromOriginAndTarget</a> (XPoint2dCR pnt0, XPoint2dCR point1)</td></tr>
<tr class="memdesc:ad34dfb86ec471c5edb539f6e73e23838"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建函数  <a href="../../d2/d7e/struct_x_ray3d.html#ad34dfb86ec471c5edb539f6e73e23838">更多...</a><br /></td></tr>
<tr class="separator:ad34dfb86ec471c5edb539f6e73e23838"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69c31bbf95d4932d859c53876564a84d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d2/d7e/struct_x_ray3d.html">XRay3d</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d7e/struct_x_ray3d.html#a69c31bbf95d4932d859c53876564a84d">FromOriginAndTarget</a> (XPoint3dCR pnt0, XPoint3dCR point1)</td></tr>
<tr class="memdesc:a69c31bbf95d4932d859c53876564a84d"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建函数  <a href="../../d2/d7e/struct_x_ray3d.html#a69c31bbf95d4932d859c53876564a84d">更多...</a><br /></td></tr>
<tr class="separator:a69c31bbf95d4932d859c53876564a84d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69a78904870bfb9399aa93c4c0a111ad"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d7e/struct_x_ray3d.html#a69a78904870bfb9399aa93c4c0a111ad">ClosestApproachUnboundedRayUnboundedRay</a> (double &amp;fractionA, double &amp;fractionB, XPoint3dR pntA, XPoint3dR pntB, XRay3dCR rayA, XRay3dCR rayB)</td></tr>
<tr class="memdesc:a69a78904870bfb9399aa93c4c0a111ad"><td class="mdescLeft">&#160;</td><td class="mdescRight">两条射线最接近的点  <a href="../../d2/d7e/struct_x_ray3d.html#a69a78904870bfb9399aa93c4c0a111ad">更多...</a><br /></td></tr>
<tr class="separator:a69a78904870bfb9399aa93c4c0a111ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a8896330969cdbf3a38f9dea2fa220379"><td class="memItemLeft" align="right" valign="top"><a id="a8896330969cdbf3a38f9dea2fa220379" name="a8896330969cdbf3a38f9dea2fa220379"></a>
<a class="el" href="../../d5/d5b/struct_x_point3d.html">XPoint3d</a>&#160;</td><td class="memItemRight" valign="bottom"><b>origin</b></td></tr>
<tr class="separator:a8896330969cdbf3a38f9dea2fa220379"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5145851cf9451716e56f4ecd439d5a2"><td class="memItemLeft" align="right" valign="top"><a id="ab5145851cf9451716e56f4ecd439d5a2" name="ab5145851cf9451716e56f4ecd439d5a2"></a>
XVec3d&#160;</td><td class="memItemRight" valign="bottom"><b>direction</b></td></tr>
<tr class="separator:ab5145851cf9451716e56f4ecd439d5a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >三维的射线 </p>
<dl class="section author"><dt>作者</dt><dd>SZEWC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/27 </dd></dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a69a78904870bfb9399aa93c4c0a111ad" name="a69a78904870bfb9399aa93c4c0a111ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69a78904870bfb9399aa93c4c0a111ad">&#9670;&nbsp;</a></span>ClosestApproachUnboundedRayUnboundedRay()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool XRay3d::ClosestApproachUnboundedRayUnboundedRay </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>fractionA</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>fractionB</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XPoint3dR&#160;</td>
          <td class="paramname"><em>pntA</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XPoint3dR&#160;</td>
          <td class="paramname"><em>pntB</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XRay3dCR&#160;</td>
          <td class="paramname"><em>rayA</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XRay3dCR&#160;</td>
          <td class="paramname"><em>rayB</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>两条射线最接近的点 </p>
<p >计算（无界）射线 rayA 和（有界）射线 rayB 最接近的点，当两条射线平行返回false</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">double</td><td>&amp; fractionA </td></tr>
    <tr><td class="paramname">double</td><td>&amp; fractionB </td></tr>
    <tr><td class="paramname">XPoint3dR</td><td>pointA </td></tr>
    <tr><td class="paramname">XPoint3dR</td><td>pointB </td></tr>
    <tr><td class="paramname">XRay3dCR</td><td>rayA </td></tr>
    <tr><td class="paramname">XRay3dCR</td><td>rayB </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>bool</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/14 </dd></dl>

</div>
</div>
<a id="ad34dfb86ec471c5edb539f6e73e23838" name="ad34dfb86ec471c5edb539f6e73e23838"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad34dfb86ec471c5edb539f6e73e23838">&#9670;&nbsp;</a></span>FromOriginAndTarget() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d2/d7e/struct_x_ray3d.html">XRay3d</a> XRay3d::FromOriginAndTarget </td>
          <td>(</td>
          <td class="paramtype">XPoint2dCR&#160;</td>
          <td class="paramname"><em>pnt0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XPoint2dCR&#160;</td>
          <td class="paramname"><em>point1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建函数 </p>
<p >由2D的起点和另一个点创建一条射线</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">XPoint2dCR</td><td>point0 </td></tr>
    <tr><td class="paramname">XPoint2dCR</td><td>point1 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="../../d2/d7e/struct_x_ray3d.html" title="三维的射线">XRay3d</a></dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/14 </dd></dl>

</div>
</div>
<a id="a69c31bbf95d4932d859c53876564a84d" name="a69c31bbf95d4932d859c53876564a84d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69c31bbf95d4932d859c53876564a84d">&#9670;&nbsp;</a></span>FromOriginAndTarget() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d2/d7e/struct_x_ray3d.html">XRay3d</a> XRay3d::FromOriginAndTarget </td>
          <td>(</td>
          <td class="paramtype">XPoint3dCR&#160;</td>
          <td class="paramname"><em>pnt0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XPoint3dCR&#160;</td>
          <td class="paramname"><em>point1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建函数 </p>
<p >由3D的起点和另一个点创建一条射线</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">XPoint3dCR</td><td>point0 </td></tr>
    <tr><td class="paramname">XPoint3dCR</td><td>point1 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="../../d2/d7e/struct_x_ray3d.html" title="三维的射线">XRay3d</a></dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/14 </dd></dl>

</div>
</div>
<a id="ab0fea928ca45c982c6bb0a322e96e2f3" name="ab0fea928ca45c982c6bb0a322e96e2f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0fea928ca45c982c6bb0a322e96e2f3">&#9670;&nbsp;</a></span>FromOriginAndVector()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d2/d7e/struct_x_ray3d.html">XRay3d</a> XRay3d::FromOriginAndVector </td>
          <td>(</td>
          <td class="paramtype">XPoint3dCR&#160;</td>
          <td class="paramname"><em>origin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XVec3dCR&#160;</td>
          <td class="paramname"><em>vector</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建函数 </p>
<p >由起点和向量创建一条射线</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">XPoint3dCR</td><td>origin </td></tr>
    <tr><td class="paramname">XVec3dCR</td><td>vector </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="../../d2/d7e/struct_x_ray3d.html" title="三维的射线">XRay3d</a></dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/14 </dd></dl>

</div>
</div>
<a id="a05d1452cdb322953f732feedf869817b" name="a05d1452cdb322953f732feedf869817b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05d1452cdb322953f732feedf869817b">&#9670;&nbsp;</a></span>InitFromOriginAndVector()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XRay3d::InitFromOriginAndVector </td>
          <td>(</td>
          <td class="paramtype">XPoint3dCR&#160;</td>
          <td class="paramname"><em>origin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XVec3dCR&#160;</td>
          <td class="paramname"><em>vector</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>初始化数据 </p>
<p >由起点和向量初始化数据</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">XPoint3dCR</td><td>origin </td></tr>
    <tr><td class="paramname">XVec3dCR</td><td>vector </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/14 </dd></dl>

</div>
</div>
<a id="a51dfc616df0f94ca51a250bfe2fee1e8" name="a51dfc616df0f94ca51a250bfe2fee1e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51dfc616df0f94ca51a250bfe2fee1e8">&#9670;&nbsp;</a></span>InitFromPlanePlaneIntersection()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool XRay3d::InitFromPlanePlaneIntersection </td>
          <td>(</td>
          <td class="paramtype">XPlane3dCR&#160;</td>
          <td class="paramname"><em>planeA</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XPlane3dCR&#160;</td>
          <td class="paramname"><em>planeB</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>初始化数据 </p>
<p >由两个平面相交初始化数据</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">XPlane3dCR</td><td>planeA </td></tr>
    <tr><td class="paramname">XPlane3dCR</td><td>planeB </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>bool</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/14 </dd></dl>

</div>
</div>
<a id="a79835c2159771277110779c98dc28c51" name="a79835c2159771277110779c98dc28c51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a79835c2159771277110779c98dc28c51">&#9670;&nbsp;</a></span>Intersect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool XRay3d::Intersect </td>
          <td>(</td>
          <td class="paramtype">XPoint3dR&#160;</td>
          <td class="paramname"><em>intPoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>intParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XPlane3dCR&#160;</td>
          <td class="paramname"><em>plane</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>与平面相交 </p>
<p >计算(无界)射线与平面的交点，当射线与平面平行返回false</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">XPoint3dR</td><td>intPoint </td></tr>
    <tr><td class="paramname">double</td><td>&amp; intParam </td></tr>
    <tr><td class="paramname">XPlane3dCR</td><td>plane </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>bool</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/14 </dd></dl>

</div>
</div>
<a id="a9dadf1cbe26ddff278925ad68f6bf165" name="a9dadf1cbe26ddff278925ad68f6bf165"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9dadf1cbe26ddff278925ad68f6bf165">&#9670;&nbsp;</a></span>ProjectPointUnbounded()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool XRay3d::ProjectPointUnbounded </td>
          <td>(</td>
          <td class="paramtype">XPoint3dR&#160;</td>
          <td class="paramname"><em>closestPoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>closestParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XPoint3dCR&#160;</td>
          <td class="paramname"><em>point</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>将点投影到射线上（无范围限制） </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">XPoint3dR</td><td>closestPoint 投影点 </td></tr>
    <tr><td class="paramname">double</td><td>&amp;closestParam 最近点的参数 </td></tr>
    <tr><td class="paramname">XPoint3dCR</td><td>point 空间点 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>bool 是否成功</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/14 </dd></dl>

</div>
</div>
<hr/>该结构体的文档由以下文件生成:<ul>
<li>D:/doxy/PublicAPI/ATGeometrySet/<a class="el" href="../../d0/d0d/_x_ray3d_8h_source.html">XRay3d.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
